home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Prog / T / ToolsPlus 2.1.sit / Tools Plus 2.1 ƒ / Tools Plus 2.1 (C & Pascal) / User Manual / 02-Installing Tools Plus < prev    next >
Encoding:
Text File  |  1993-10-24  |  6.2 KB  |  145 lines  |  [TEXT/ttxt]

  1. 2  Installing Tools Plus
  2. ````````````````````````
  3.  
  4.  
  5.  
  6.  
  7.  
  8. Tools Plus Contents
  9. ```````````````````
  10. Tools Plus for THINK Pascal and Tools Plus for THINK C are located in two separate folders.  Tools Plus is made up of the following items:
  11.  
  12.    “ToolsPlus.Lib1”  First of two libraries needed to use Tools Plus
  13.  
  14.    “ToolsPlus.Lib2”  Second of two libraries needed to use Tools Plus
  15.  
  16.    “ToolsPlus.h”     C header file for Tools Plus
  17.                      (C only)
  18.  
  19.    “ToolsPlus.c”     Source code for routines that must be compiled with
  20.                      your application.  These routines will be compiled
  21.                      according to your project’s compiler settings for
  22.                      680x0 processor and/or math co-processor 
  23.                      optimization.
  24.                      (C only)
  25.  
  26.    “ToolsPlus.p”     Pascal interface file for Tools Plus
  27.                      (Pascal only)
  28.  
  29.    “Demos”           Folder containing a demo application and its source
  30.                      code
  31.  
  32.  
  33.  
  34.  
  35.  
  36. Installing Tools Plus for THINK C
  37. `````````````````````````````````
  38.   This User Manual is also part of the Tools Plus package.  Drag the ToolsPlus.Lib1 and ToolsPlus.Lib2 libraries into the C Libraries folder, and ToolsPlus.h into the Mac #includes folder, or where ever you keep your other libraries and header files.  You can drag the ToolsPlus.c file into your C Libraries folder, even though it is not a library.  Keeping it with the ToolsPlus.Lib1 and ToolsPlus.Lib2 libraries will help to remind you to include ToolsPlus.c in your project.
  39.  
  40.  
  41.  
  42.  
  43.  
  44. Adding Tools Plus to a THINK C Project
  45. ``````````````````````````````````````
  46.   To add Tools Plus to a THINK C project, first open your project, then use the Source menu’s Add… command to add the ToolsPlus.Lib1 and ToolsPlus.Lib2 libraries.
  47.   Put ToolsPlus.Lib1 in its own segment.  It takes up almost the full 32k allowed per segment.  Put ToolsPlus.Lib2 and ToolsPlus.c in a separate segment too.  Although this second library is relatively small, it will likely become larger in future revisions of Tools Plus.
  48.  
  49.  
  50.  
  51.  
  52.  
  53. THINK C Compiler Options
  54. ````````````````````````
  55. Warning: Tools Plus requires the use of standard 2-byte integers, and
  56.          not the optional 4-byte integers.  Use the Edit menu’s Options…
  57.          command, and select “Compiler Settings.”  Make sure the “4-byte
  58.          ints” check box is not selected.
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Tools Plus Segments in THINK C
  65. ``````````````````````````````
  66.   The segments containing Tools Plus libraries will be constantly accessed while your application is running.  It is preferable to pre-load those segments by flagging them as “Preload.”
  67.  
  68. Warning: Do not unload the segments containing Tools Plus libraries.
  69.          You can ensure that this doesn’t happen accidentally by
  70.          flagging them as not “Purgeable.”
  71.  
  72.  
  73.  
  74.  
  75. -----------------------------------------------------------------------
  76.  
  77.  
  78.  
  79.  
  80. Installing Tools Plus for THINK Pascal
  81. ``````````````````````````````````````
  82. This User Manual is also part of the Tools Plus package.  Drag the ToolsPlus.Lib1 and ToolsPlus.Lib2 libraries into the Libraries folder, and ToolsPlus.p into the Interface folder, or where ever you keep your other libraries and interfaces.
  83.  
  84.  
  85.  
  86.  
  87.  
  88. Adding Tools Plus to a THINK Pascal Project
  89. ```````````````````````````````````````````
  90.   To add Tools Plus to a project, first open your project, then use the Project menu’s Add File command to add the ToolsPlus.Lib1 and ToolsPlus.Lib2 libraries and the ToolsPlus.p interface file
  91.  
  92.   Build Order…
  93.     ToolsPlus.Lib1 and ToolsPlus.Lib2 can be anywhere in your build
  94.     order, but for the sake of neatness, you decide to have all your
  95.     libraries in the same place, that being either at the top or bottom
  96.     of your build order list.  ToolsPlus.p (the interface file) must
  97.     appear BEFORE any unit that makes reference to it.  A good place it
  98.     somewhere before your first source code file.
  99.  
  100.   By Segment…
  101.     Put ToolsPlus.Lib1 in a segment by itself.  It takes up almost the
  102.     full 32k allowed per segment.  Put ToolsPlus.Lib2 and ToolsPlus.p in
  103.     a separate segment too.  Although this second library is relatively
  104.     small, it will likely become larger in future revisions of Tools
  105.     Plus.
  106.  
  107.  
  108.  
  109.  
  110.  
  111. After Compiling
  112. ```````````````
  113.   So far, you’ve told THINK Pascal what files to use and the order in which they should be compiled.  When you compile your project the first time, THINK Pascal loads the specified libraries and integrates them into your project file, and it compiles source files (including ToolsPlus.p) and integrates them in your project file.  After your first compile, you’ll notice that THINK Pascal automatically added several items to your project file:
  114.       «ToolsPlus.Lib1:1»
  115.       «ToolsPlus.Lib2:1»
  116.       «%_MethTables»
  117.       «%_SelProcs»
  118.       «%_Profiler»
  119.  
  120.   The «ToolsPlus.Lib1:1» and «ToolsPlus.Lib2:1» items contain the object code from the Tools Plus libraries, while «%_MethTables», «%_SelProcs» and «%_Profiler» items are part of THINK Pascal’s overhead (consult your THINK Pascal User Manual for details).
  121.  
  122.   Drag «ToolsPlus.Lib1:1» into the same segment as ToolsPlus.Lib1, and «ToolsPlus.Lib2:1» into the same segment as ToolsPlus.Lib2.
  123.  
  124.   Drag «%_MethTables», «%_SelProcs» and «%_Profiler» to any segment that won’t be unloaded while your application is running, such as the one containing the Runtime.lib library.
  125.  
  126.   Even though the project window indicates that Segment 1 exceeds the 32k limit imposed on segments, the project will compile and run.  When you build your application, the smart linker will strip away unneeded code and significantly reduce the size of this segment.
  127.  
  128.  
  129. Note: Tools Plus does not have a dependency on the Runtime.lib library.
  130.       Unless your application needs routines that are found only in the
  131.       full Runtime.lib library, you can use the smaller µRuntime.lib
  132.       library instead
  133.  
  134.  
  135.  
  136.  
  137.  
  138. Tools Plus Segments in THINK Pascal
  139. ```````````````````````````````````
  140.   The segments containing Tools Plus libraries will be constantly accessed while your application is running.  It is preferable to pre-load those segments by flagging them as “Preload.”
  141.  
  142. Warning: Do not unload the segments containing Tools Plus libraries.
  143.          You can ensure that this doesn’t happen accidentally by
  144.          flagging them as not “Purgeable.”
  145.